﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="lensStockRelation.aspx.cs"
    Inherits="lensStockRelation" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>镜片与仓库定义</title>
    <link href="css/shipping.css" rel="stylesheet" type="text/css" />
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href="css/cs.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <!--search condition -->
        <div id="searchBox">
            <span>品牌:</span>
            <asp:DropDownList ID="DropDownListBrand" runat="server" DataTextField="brand_name"
                DataValueField="brand_id" />
            <br />
            <span>品名:</span>
            <asp:TextBox runat="server" ID="TextBoxLensName_Q" CssClass="inputBox" />
            <span>折射率:</span>
            <asp:DropDownList ID="DropDownListrRefractive_Q" runat="server">
                <asp:ListItem Value="-1" Selected="true">全部</asp:ListItem>
                <asp:ListItem>1.499</asp:ListItem>
                <asp:ListItem>1.553</asp:ListItem>
                <asp:ListItem>1.600</asp:ListItem>
                <asp:ListItem>1.670</asp:ListItem>
                <asp:ListItem>1.740</asp:ListItem>
            </asp:DropDownList>
            <div id="action">
                <asp:Button ID="ButtonQuery" runat="server" OnClick="ButtonQuery_Click" Text="查询"
                    CssClass="button" />
            </div>
        </div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="60%" align="left" valign="top">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="1"
                        CellSpacing="1" BorderWidth="0px" BackColor="#C6D5DC" CssClass="biaoresult" AllowPaging="True"
                        OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="30" OnRowCommand="GridView1_RowCommand"
                        Font-Size="Small">
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <EditRowStyle BackColor="#999999" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" Font-Size="8" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        <Columns>
                            <asp:BoundField DataField="lens_id" HeaderText="lens_id" FooterStyle-CssClass="hidden"
                                HeaderStyle-CssClass="hidden" ItemStyle-CssClass="hidden" />
                            <asp:BoundField DataField="brand_name" HeaderText="品牌" />
                            <asp:BoundField DataField="lens_name" HeaderText="品名" />
                            <asp:BoundField DataField="stock_depot_name" HeaderText="出库仓库" HeaderStyle-BackColor="#188FF9" />
                            <asp:BoundField DataField="stock_brand_name" HeaderText="出库品牌" HeaderStyle-BackColor="#188FF9" />
                            <asp:BoundField DataField="stock_lens_name" HeaderText="出库品名" HeaderStyle-BackColor="#188FF9" />
                            <asp:TemplateField ShowHeader="False">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButtonEdit" runat="server" CausesValidation="False" Text="修改"
                                        CommandArgument='<%# Eval("id") %>' CommandName="command_edit"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <asp:Panel ID="PanelAction" runat="server" Font-Size="small" Visible="false">
                        <%--                        <asp:LinkButton ID="LinkButtonRef" runat="server" CausesValidation="False" Text="参照"
                            OnClick="LinkButtonRef_Click"></asp:LinkButton>
                        其它品牌--%>
                    </asp:Panel>
                </td>
                <td align="left" valign="top">
                    <asp:Panel ID="PanelInput" runat="server">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td width="25%">
                                    镜片:</td>
                                <td>
                                    <asp:Label ID="LabelID" runat="server" Visible="false"></asp:Label>
                                    <asp:Label ID="LabelLensID" runat="server" Visible="false"></asp:Label>
                                    <asp:Label ID="LabelBrandName" runat="server"></asp:Label>
                                    <asp:Label ID="LabelLensName" runat="server"></asp:Label>
                                    <asp:TextBox ID="TextBoxCommandType" runat="server" Visible="false"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    出库仓库:</td>
                                <td>
                                    <asp:DropDownList ID="DropDownListStockDepot" runat="server" DataTextField="depot_name"
                                        DataValueField="depot_id" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    出库品牌:</td>
                                <td>
                                    <asp:DropDownList ID="DropDownListStockBrand" runat="server" DataTextField="brand_name"
                                        DataValueField="brand_id" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    出库品名:</td>
                                <td>
                                    <asp:DropDownList ID="DropDownListStockLens" runat="server" DataTextField="lens_name"
                                        DataValueField="lens_id" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <asp:Button ID="ButtonSubmit" runat="server" OnClick="ButtonSubmit_Click" Text="保存"
                                        CssClass="button" /></td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Panel ID="PanelRef" runat="server" Font-Size="small" Visible="false">
                        &nbsp;&nbsp;&nbsp;&nbsp; 参照品牌：<asp:DropDownList ID="DropDownListRef_Brand" runat="server"
                            DataTextField="brand_name" DataValueField="brand_id" />
                        <asp:Button ID="ButtonRef" runat="server" OnClick="ButtonRef_Click" Text="执行参照" CausesValidation="False"
                            CssClass="button" />
                        <asp:Label ID="LabelMemo1" runat="server" ForeColor="blue" Font-Size="Small" Text="* 参照将引用全部数据，老数据会被覆盖。"></asp:Label>
                    </asp:Panel>
                    <div>
                        <asp:Label ID="LabelErrorMsg" runat="server" Text="" ForeColor="red"></asp:Label></div>
                </td>
            </tr>
        </table>
        <div>
            <asp:Label ID="Label1" runat="server" Text="" ForeColor="red"></asp:Label></div>
    </form>
</body>
</html>
